package net.georel.representation.categorisation.analysis;

public class Analyse_Classification {

	public static int[] getMemberCountInEachClass(int[] relevanceArray, int classNumber){
		
		int[] classArray = new int[classNumber];
		int[] memberCountArray = new int[classNumber];
		
			for(int i = 0; i<classNumber;i++){
				classArray[i]=i+1;
			}
		
		int tempValue =0;
		
			for(int j = 0; j<relevanceArray.length;j++){
				tempValue = relevanceArray[j];
				for(int k = 0; k<classNumber;k++){
					if(tempValue==classArray[k]){
						memberCountArray[k]+=1;
					}
				}				
			}
			
			for(int i = 0; i<classNumber;i++){
				System.out.println(memberCountArray[i]);
			}
		return memberCountArray;
	}
}
